<include file="Public/_meta" />

<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>消费业务</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 消费业务 <span class="c-gray en">&gt;</span> 消费列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>


<div class="page-container">
	<div class="text-c">
		<select name="" class="select-box inline">
			<option value="0">贷款人姓名</option>
			<option value="1">推荐人</option>
            <option value="2">房屋地址</option>
		</select>
		<input type="text" name="" id=""  style="width:250px" class="input-text">
		<button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i>搜索</button>
	</div>
	<div class="cl pd-5 bg-1 bk-gray mt-20"> 
	<span class="l">
	    <?php if(strstr($user_auth['level'],"39")){ ?><a href="javascript:;" onClick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> <?php } ?>
	    <a class="btn btn-primary radius" onClick="picture_add('建档','consumption-add.html')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i>建档</a>
	    </span> <span class="r">共有数据：<strong>54</strong> 条</span> 
	    </div>
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<th width="25"><input type="checkbox" name="" value=""></th>
					<th width="80">姓名</th>
                    <th width="120">建档时间</th>
					<th width="80">贷款银行</th>
					<th width="80">贷款金额(万元)</th>					
					<th width="75">推荐人</th>
					<th width="60">品种</th>
					<th width="120">抵押日期</th>
                    <th width="120">收费日期</th>
                    <th width="120">下款日期</th>
                    <th width="120">操作</th>
				</tr>
			</thead>
			<tbody>
			<volist name="consume" id="vo" >
				<tr class="text-c">
					<td><input type="checkbox" value="" name=""></td>
					<td class="text-l"><u style="cursor:pointer" class="text-primary" onClick="article_edit('查看','{:U('Consump/consumptionalert',array('consume_id'=>$vo['consume_id']))}','10001')" title="查看">{$vo.client_name}</u></td>
					<td><if condition="$vo.creat_time neq ''">{$vo.creat_time|date="Y-m-d",###}</if></td>					
					<td>{$vo.bank_id}</td>
                    <td>{$vo.loan_amount}</td>
                    <td>{$vo.referrer_name}</td>
                    <td><if condition="$vo.loan_type eq 1">信用贷<elseif condition="$vo.loan_type eq 2"/>消费贷<elseif condition="$vo.loan_type eq 3"/>企业贷</if></td>
					<td><if condition="$vo.mortgage_time neq '' or $vo.mortgage_time neq '0'">{$vo.mortgage_time|date="Y-m-d",###}</if></td>
                    <td><if condition="$vo.charge_time neq '' or $vo.charge_time neq '0'">{$vo.charge_time|date="Y-m-d",###}</if></td>
                    <td><if condition="$vo.credit_time neq '' or $vo.credit_time neq '0'">{$vo.credit_time|date="Y-m-d",###}</if></td>
                    <td> <a style="text-decoration:none" class="ml-5" onClick="article_edit('查看','{:U('Consump/consumptionalert',array('consume_id'=>$vo['consume_id']))}','10001')" href="javascript:;" title="查看">查看</a> </td>				
				</tr>
				</volist>
			</tbody>
		</table>
	</div>
	<div class="manu">{$page}</div>
</div>



<include file="Public/_footer"  />

<script type="text/javascript">
$('.table-sort').dataTable({
	"aaSorting": [[ 1, "desc" ]],//默认第几个排序
	"bStateSave": true,//状态保存
	"aoColumnDefs": [
	  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
	  {"orderable":false,"aTargets":[0,8]}// 不参与排序的列
	]
});

/*建档-添加*/
function picture_add(title,url){
	var index = layer.open({
		type: 2,
		title: title,
		content: url
	});
	layer.full(index);
}
/*资讯-编辑*/
function article_edit(title,url,id,w,h){
	var index = layer.open({
		type: 2,
		title: title,
		content: url
	});
	layer.full(index);
}
/*资讯-删除*/
function article_del(obj,id){
	layer.confirm('确认要删除吗？',function(index){
		$(obj).parents("tr").remove();
		layer.msg('已删除!',{icon:1,time:1000});
	});
}

</script>
</body>
</html>